table {
  margin: 0 auto;
  text-align: center;
}

table th,
table td {
  vertical-align: middle !important;
}

.btn,
.btn:active,
.btn:focus {
  outline: none !important;
}

.btn {
  position: relative;
  z-index: 1;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.3);
  -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

.btn:before,
.btn:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
}

.btn:after {
  height: 50%;
  background: url('');
  background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(255, 255, 255, 0.5)), color-stop(100%, rgba(255, 255, 255, 0.3)));
  background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  -moz-border-image: -moz-linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)) 1 1 0 stretch;
  -moz-border-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)) 1 1 0 stretch;
  -o-border-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)) 1 1 0 stretch;
  -webkit-border-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)) 1 1 0 stretch;
  -webkit-border-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)) 1 1 0 stretch;
  border-image: -moz-linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)) 1 1 0 stretch;
  border-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)) 1 1 0 stretch;
  border-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)) 1 1 0 stretch;
  border-width: 1px 1px 0;
}

.btn:before {
  bottom: 0;
  background: url('');
  background: -moz-radial-gradient(bottom center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  background: -webkit-radial-gradient(bottom center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  background: radial-gradient(bottom center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  -moz-border-image: -moz-linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 1 stretch;
  -moz-border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 1 stretch;
  -o-border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 1 stretch;
  -webkit-border-image: -webkit-linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 1 stretch;
  -webkit-border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 1 stretch;
  border-image: -moz-linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 1 stretch;
  border-image: -webkit-linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 1 stretch;
  border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)) 0 0 1 stretch;
  border-width: 0 0 1px;
}

.btn:hover:before,
.btn:active:before,
.btn.active:before {
  background: url('');
  background: -moz-radial-gradient(bottom center, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.2));
  background: -webkit-radial-gradient(bottom center, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.2));
  background: radial-gradient(bottom center, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.2));
}

.btn:active,
.btn.active {
  -moz-box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2), inset 0 0 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.5), 0 -1px 0 rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2), inset 0 0 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.5), 0 -1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2), inset 0 0 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.5), 0 -1px 0 rgba(0, 0, 0, 0.5);
  color: #ddd;
}

.btn:active:after,
.btn.active:after {
  display: none;
}

.btn:active:before,
.btn.active:before {
  background: url('');
  background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.2)));
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  border: none;
}

.btn.btn-square {
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}

.btn.btn-default {
  text-shadow: 0 1px rgba(255, 255, 255, 0.6);
}

.btn.btn-default:active,
.btn.btn-default.active {
  color: #000;
}

.btn.btn-default:before {
  background: url('');
  background: -moz-radial-gradient(bottom center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  background: -webkit-radial-gradient(bottom center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  background: radial-gradient(bottom center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
}

.btn.btn-default:before:hover {
  -moz-border-image: -moz-linear-gradient(0deg, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0)) 0 0 1 stretch;
  -moz-border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0)) 0 0 1 stretch;
  -o-border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0)) 0 0 1 stretch;
  -webkit-border-image: -webkit-linear-gradient(0deg, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0)) 0 0 1 stretch;
  -webkit-border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0)) 0 0 1 stretch;
  border-image: -moz-linear-gradient(0deg, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0)) 0 0 1 stretch;
  border-image: -webkit-linear-gradient(0deg, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0)) 0 0 1 stretch;
  border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0)) 0 0 1 stretch;
}

.btn.btn-link {
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  text-shadow: none;
}

.btn.btn-link:before,
.btn.btn-link:after {
  display: none;
}

.btn.btn-link:active,
.btn.btn-link.active {
  color: #428bca;
}
